Skip to main content
Version: 3.x.x

ConfigProviderProps


import { ConfigProviderProps } from "@hyper-fetch/react"

Description

Defined in react/src/config-provider/config-provider.types.ts:22

Preview

type ConfigProviderProps = {
children: React.ReactNode;
config: ConfigProviderOptionsType;
}

Structure

{
children: React.ReactNode;
config: {
useCacheConfig: Partial<UseCacheOptionsType<RequestInstance>>;
useEmitter: Partial<UseEmitterOptionsType>;
useEventMessages: Partial<UseEventMessagesOptionsType<SocketResponses>>;
useFetchConfig: Partial<UseFetchOptionsType<RequestInstance>>;
useListener: Partial<UseListenerOptionsType>;
useQueueConfig: Partial<UseQueueOptionsType>;
useSubmitConfig: Partial<UseSubmitOptionsType<RequestInstance>>;
};
}